#include "StdAfx.h"
#include "SMS_ContentBase.h"
#include <boost/regex.hpp>
CSMS_ContentBase::CSMS_ContentBase(void)
{
}

CSMS_ContentBase::~CSMS_ContentBase(void)
{
}

bool CSMS_ContentBase::CheckNumber( void )
{
	boost::regex  reg("['+']?[0-9]{0,30}") ;

	if (boost::regex_match(m_number,reg))
	{
		return true;
	}

	return false;
}

CString CSMS_ContentBase::GetNumber( void )
{
	CString str_tmp(m_number.c_str());
	return str_tmp;
}

CString CSMS_ContentBase::GetContent( void )
{
	CString str_tmp(m_content.c_str());
	return str_tmp;
}